package com.frinder.official.akka.dispatcher;

import com.frinder.official.spring.MyBaseActor;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Created by frinder on 2017/9/28.
 */
@Component
@Scope("prototype")
public class PrintActor extends MyBaseActor {

    @Override
    public Receive createReceive() {
        return receiveBuilder()
                .match(Integer.class, i -> {
                    log().info("PrintActor: {}", i);
                })
                .build();
    }

}
